package com.tangyuan.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: video_thump
 * @Author: jeecg-boot
 * @Date:   2024-03-12
 * @Version: V1.0
 */
@Data
@TableName("video_thump")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class VideoThump implements Serializable {
    private static final long serialVersionUID = 1L;

	/**点赞记录表*/
	@TableId(type = IdType.AUTO)
    private Long id;
	/**视频id*/
    private Long videoId;
	/**用户id*/
    private Long userId;
	/**isDelete*/
    private Integer isDelete;
    /**
     * 是否为机器人点赞
     */
    private Integer isRobot;
    /**0-视频点赞 1-评论点赞*/
    @ApiModelProperty(value = "0-视频点赞 1-评论点赞")
    private Integer isThump;
	/**createTime*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**updateTime*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
